# -*- coding:utf-8 -*-
from service.ansible_operation import AnsibleApi

#加快ansible执行方法
def ansible_playbook(file_path):
    run_ansible = AnsibleApi()
    run_ansible.playbookrun(playbook_path=[file_path])

def run(value):
    print("进入ansible-playbook处理模块：")
    for i in value:
        ansible_playbook(i)